<?php
header('content-type:text/html;charset=utf8');
$account=$_POST['account'];
$pwd=$_POST['pwd'];

$link =@mysql_connect('127.0.0.1','root','root');
if(!$link){
    die('连接失败，错误号为：'.mysql_errno().'失败原因：'.mysql_error());
}
mysql_select_db('blog');
mysql_set_charset('utf8');
$sql = "select * from `member` where 'account'='$account'";
$res = mysql_query($sql) or mysql_error();
$arr = array();
while ($row = mysql_fetch_assoc($res)){
    $arr[] = $row;
}
// var_dump($arr);die;
$arr=$arr[0];
//mysql_free_result($res);
mysql_close();

    
    
    
        
